package com.suzhe.ymall.order.enums;

public enum OrderStatusEnum {

    ROLLBACK(-1, "已回滚"),
    INVISIBLE(0, "不可见"),
    INIT(1, "初始化"),
    PAY_UP(2, "已付款"),
    DELIVERED(3, "已发货"),
    CONFIRMED(4, "已确认"),
    CLOSED(5, "已关闭"),
    RATED(6, "已评价");

    private Integer code;
    private String desc;

    OrderStatusEnum(Integer code, String msg) {
        this.code = code;
        this.desc = msg;
    }

    public Integer value(){
        return this.code;
    }

    public String desc(){
        return desc;
    }

}
